Skip to content

Avoid a blocking quantity task in browser WebAssembly - #310

Draft
mahach666 wants to merge 1 commit into
mainfrom
codex/rvt-browser-quantity-postprocess
Draft

mahach666 wants to merge 1 commit into
mainfrom
codex/rvt-browser-quantity-postprocess

Conversation

@mahach666

@mahach666 mahach666 commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Run coarse door and window quantity post-processing through the existing synchronous path in the browser.
  • Keep background overlap between quantity geometry and parameter propagation on native runtimes.

The new background task in #309 can reach a blocking wait on a single-threaded WebAssembly runtime. This throws PlatformNotSupportedException from ElementBuilder.PostProcess when opening or exporting a valid Revit model.

Validation

  • Reproduced the failure in Chromium with the single-threaded .NET 11 WebAssembly build from c54aa06.

  • With the fix, the browser completed Compact JSON export of the public rstbasicsampleproject.rvt sample. The result matched the current browser build byte for byte.

  • All 64 focused .NET 10 tests for derived parameters, native fields, quantity geometry, and window type references passed.

  • The corrected AOT browser viewer rendered the same public sample with matching model counts and paged geometry. The export smoke test also passed IFC with Revit properties.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant